home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10109 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  762 b 

  1. Path: math.ohio-state.edu!usc!usenet
  2. From: cfong@sunset.usc.edu(???
  3. )
  4. Newsgroups: comp.lang.c
  5. Subject: file pointer(buffering problem)
  6. Date: 15 Mar 1996 17:53:13 GMT
  7. Organization: University of Southern California, Los Angeles, CA
  8. Sender: cfong@sunset.usc.edu
  9. Message-ID: <4icaq9$1e@usc.edu>
  10. NNTP-Posting-Host: sunset.usc.edu
  11.  
  12.  I hope you all can help me on this...
  13.  
  14.  I was wondering if there is a way that I can read and write
  15.  a same file at the same time...  without buffering the old stuff
  16.  
  17.  here is what I wanted to do:
  18.  
  19.  a text file of thousand lines:
  20.  
  21.  Jason Fong
  22.  ...
  23.  ..
  24.  .
  25.  
  26.  All I wanted to change is the first line to:
  27.  
  28.  Jason
  29.  ...
  30.  ..
  31.  .
  32.  
  33.  Is there a way that I can update the file without buffering the whole
  34.  file first!?!
  35.  
  36.  Thanks!!!
  37.  
  38.  J
  39.  
  40.